const HOUR = 1000 * 60 * 60;
const MINUTE = 1000 * 60;
const SECONDS = 1000;
export function formatTime(_time) {
    let time = _time;
    const hour = Math.floor(time / HOUR);
    time -= hour * HOUR;
    const minute = Math.floor(time / MINUTE);
    time -= minute * MINUTE;
    const seconds = Math.floor(time / SECONDS);
    return `${hour.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
}